package com.fuhao.builder;

public class Test {

	public static void main(String[] args) {
		
		
		PersonDirector personDirector = new PersonDirector();
		
		//创建美国人
		Person aPserson = personDirector.constructPerson(new AmericaPerson());
		System.out.println(aPserson.getHead());
		System.out.println(aPserson.getBody());
		System.out.println(aPserson.getFoot());
		
		//创建中国人
		Person cPerson = personDirector.constructPerson(new ChinaesePerson());
		System.out.println(cPerson.getHead());
		System.out.println(cPerson.getBody());
		System.out.println(cPerson.getFoot());
	}
}
